package com.rightsidetech.system.service;

import com.github.pagehelper.PageInfo;
import com.rightsidetech.commom.base.DelReq;
import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.commom.service.IService;
import com.rightsidetech.system.dtos.request.adverts.*;
import com.rightsidetech.system.dtos.response.adverts.AppBannerResp;
import com.rightsidetech.system.dtos.response.adverts.BannerPageResp;

import java.util.List;

public interface SysAdvertsBannerService extends IService<List<BannerPageResp>,List<Long>> {

    ResponseData saveBanner(BannerSaveReq req,String createrName,String jumpName);

    ResponseData<PageInfo<BannerPageResp>> pageBanner(BannerPageReq req);

    ResponseData update(BannerUpReq req,String jumpName);

    ResponseData isClose(CloseLoadReq req);

    ResponseData del(DelReq req);

    ResponseData<List<AppBannerResp>> appBanner(Byte platform);

    ResponseData<List<AppBannerResp>> appBanner(List<Long> commodityIds);

    ResponseData sortBanner(BannerSortReq req);

    ResponseData<List<BannerPageResp>> list(BannerPageReq req);
}
